From: Matthew Leeds Date: Thu, 31 May 2018 00:20:08 +0000 (-0700) Subject: lib: Fix building against old glib versions X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~197^2~1^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f1d9196076d4aea1f64e0d2cbd17bfa2891b8c4c;p=ostree.git lib: Fix building against old glib versions This commit includes libglnx.h in ostree-autocleanups.h, so we get the g_autoptr backports wherever they're needed. Also, remove the "#include libglnx.h" lines elsewhere that are no longer needed. Closes: #1596 Approved by: cgwalters --- diff --git a/src/libostree/ostree-autocleanups.h b/src/libostree/ostree-autocleanups.h index 504954e0..d1c94410 100644 --- a/src/libostree/ostree-autocleanups.h +++ b/src/libostree/ostree-autocleanups.h @@ -24,6 +24,7 @@ #pragma once #include +#include G_BEGIN_DECLS diff --git a/src/libostree/ostree-ref.c b/src/libostree/ostree-ref.c index 0954cb0e..9a410499 100644 --- a/src/libostree/ostree-ref.c +++ b/src/libostree/ostree-ref.c @@ -27,7 +27,6 @@ #include #include #include -#include #include "ostree-autocleanups.h" #include "ostree-core.h" diff --git a/src/libostree/ostree-repo-finder-config.c b/src/libostree/ostree-repo-finder-config.c index 5d1e1595..58cf321c 100644 --- a/src/libostree/ostree-repo-finder-config.c +++ b/src/libostree/ostree-repo-finder-config.c @@ -28,7 +28,6 @@ #include #include #include -#include #include "ostree-autocleanups.h" #include "ostree-remote-private.h" diff --git a/src/libostree/ostree-repo-finder-mount.c b/src/libostree/ostree-repo-finder-mount.c index 09e85035..117033df 100644 --- a/src/libostree/ostree-repo-finder-mount.c +++ b/src/libostree/ostree-repo-finder-mount.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include "ostree-autocleanups.h" diff --git a/src/libostree/ostree-repo-finder-override.c b/src/libostree/ostree-repo-finder-override.c index 5bad9ace..0ee0270d 100644 --- a/src/libostree/ostree-repo-finder-override.c +++ b/src/libostree/ostree-repo-finder-override.c @@ -28,7 +28,6 @@ #include #include #include -#include #include "ostree-autocleanups.h" #include "ostree-remote-private.h" diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 3251880f..43c18767 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -28,7 +28,6 @@ #include #include #include -#include "libglnx.h" #include "otutil.h" #include diff --git a/tests/test-repo-finder-mount.c b/tests/test-repo-finder-mount.c index 55eb47fb..948a3245 100644 --- a/tests/test-repo-finder-mount.c +++ b/tests/test-repo-finder-mount.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include "libostreetest.h"